package com.bwie.spu.domain.dto;

import com.bwie.common.core.annotation.Excel;

import java.math.BigDecimal;

public class ProductUpDTO {
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Integer id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String spuName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String spuDescription;

    /** 所属分类id */
    @Excel(name = "所属分类id")
    private String catalogName;

    /** 品牌id */
    @Excel(name = "品牌")
    private String brandName;

    /** 重量 */
    @Excel(name = "重量", readConverterExp = "$column.readConverterExp()")
    private BigDecimal weight;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private Integer publishStatus;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private String publishStatusName;

    public ProductUpDTO() {
    }

    public ProductUpDTO(Integer id, String spuName, String spuDescription, String catalogName, String brandName, BigDecimal weight, Integer publishStatus, String publishStatusName) {
        this.id = id;
        this.spuName = spuName;
        this.spuDescription = spuDescription;
        this.catalogName = catalogName;
        this.brandName = brandName;
        this.weight = weight;
        this.publishStatus = publishStatus;
        this.publishStatusName = publishStatusName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSpuName() {
        return spuName;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public String getSpuDescription() {
        return spuDescription;
    }

    public void setSpuDescription(String spuDescription) {
        this.spuDescription = spuDescription;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Integer getPublishStatus() {
        return publishStatus;
    }

    public void setPublishStatus(Integer publishStatus) {
        this.publishStatus = publishStatus;
    }

    public String getPublishStatusName() {
        return publishStatusName;
    }

    public void setPublishStatusName(String publishStatusName) {
        this.publishStatusName = publishStatusName;
    }

    @Override
    public String toString() {
        return "ProductUpDTO{" +
                "id=" + id +
                ", spuName='" + spuName + '\'' +
                ", spuDescription='" + spuDescription + '\'' +
                ", catalogName='" + catalogName + '\'' +
                ", brandName='" + brandName + '\'' +
                ", weight=" + weight +
                ", publishStatus=" + publishStatus +
                ", publishStatusName='" + publishStatusName + '\'' +
                '}';
    }
}
